home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
037a
/
svgabgi3.zip
/
TWK256.H
< prev
next >
Wrap
Text File
|
1991-08-29
|
1KB
|
48 lines
/************************************************/
/* */
/* Tweaked 256 BGI driver defines */
/* Copyright (c) 1991 */
/* Jordan Hargraphix Software */
/* */
/************************************************/
#include <dos.h>
typedef unsigned char DacPalette256[256][3];
extern int far _Cdecl Twk256_fdriver[];
/* These are the currently supported modes */
#define TWK320x400x256 0
#define TWK320x480x256 1
#define TWK360x480x256 2
#define TWK376x564x256 3
#define TWK400x564x256 4
#define TWK400x600x256 5
#ifndef XNOR_PUT
#define XNOR_PUT 5
#define NAND_PUT 6
#define NOR_PUT 7
#endif
#define TRANS_COPY_PUT 8
/* Setvgapalette256 sets the entire 256 color palette */
/* PalBuf contains RGB values for all 256 colors */
/* R,G,B values range from 0 to 63 */
/* Usage: */
/* DacPalette256 dac256; */
/* */
/* setvgapalette256(&dac256); */
void setvgapalette256(DacPalette256 *PalBuf)
{
struct REGPACK reg;
reg.r_ax = 0x1012;
reg.r_bx = 0;
reg.r_cx = 256;
reg.r_es = FP_SEG(PalBuf);
reg.r_dx = FP_OFF(PalBuf);
intr(0x10,®);
}